package com.ganzi.ganziserver.core;

import com.ganzi.ganziserver.utils.GetTime;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

/**
 * 目前采用json的字符串格式存储盘管状态数据在数据库
 * */
@Data
@Builder
public class CollectInformation implements Serializable {

    private long id;
    private long fanId;
    private String information;
    private long timePoint;
    private String tempTimePoint;

    public void setTimePoint(long timePoint) {
        this.timePoint = timePoint;
        this.tempTimePoint = GetTime.stampToDate(timePoint);
    }
}
